print('-' * 30)
a = 10
b = 3
print(a / b)  # 除法
print(a // b)  # 向下取正

print('-' * 30)
# while 循环
a = 1
while a < 10:
    print(a)
    a += 2
numbers = [12, 27, 31, 4, 25, 16, 8, 3]
even = []
odd = []
while len(numbers) > 0:
    number = numbers.pop()
    if number % 2 == 0:
        even.append(number)
    else:
        odd.append(number)
print(even)
print(odd)

# 请利用循环依次对list中的每个名字打印出Hello, xxx!：
L = ['Bart', 'Lisa', 'Adam']
l = len(L)
while l > 0:
    l = l - 1
    print(L[l])
